package com.github.cooker.monitor.core.msg;

import com.github.cooker.monitor.core.LevelType;
import com.github.cooker.monitor.core.LevelTypeEnum;
import com.github.cooker.monitor.core.MsgType;

import java.io.Serializable;

/**
 * 17/1/2022 4:12 下午
 * 描述：
 *
 * @author grant
 */
public final class TextMsg extends BaseMsg implements Serializable {

    private static final long serialVersionUID = -9037379357852003196L;

    public TextMsg() {}

    public TextMsg(String title, MsgType msgType, LevelTypeEnum levelType, StringBuilder content) {
        super(title, msgType, levelType, content);
    }

    public TextMsg content(StringBuilder content) {
        this.setContent(content);
        return this;
    }

    public TextMsg msgType(MsgType msgType) {
        this.setMsgType(msgType);
        return this;
    }

    public TextMsg levelType(LevelType levelType) {
        this.setLevelType(levelType);
        return this;
    }

}
